package com.goodving.guli.utility;

/**
 * Created by john on 2015/11/17.
 */

import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.text.SpannableString;
import android.text.style.AbsoluteSizeSpan;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.androidquery.AQuery;
import com.goodving.guli.model.DailyStats;

import java.util.ArrayList;
import java.util.List;


/* renamed from: cn.ledongli.ldl.a.l */
public class C1057l extends BaseAdapter {
    public static String f3774a = null;
    private static final int f3775h = 111;
    public List<Activity> f3776b;
//    public List<af> f3777c;
    private final DailyStats f3778d;
    private Typeface f3779e;
    private AQuery f3780f;
    private boolean f3781g;

    /* renamed from: cn.ledongli.ldl.a.l.1 */
    static /* synthetic */ class C10541 {
        static final /* synthetic */ int[] f3765a;

        static {
            f3765a = new int[C1055a.values().length];
            try {
                f3765a[C1055a.RgmCard.ordinal()] = 1;
            } catch (NoSuchFieldError e) {
            }
            try {
                f3765a[C1055a.LsfCard.ordinal()] = 2;
            } catch (NoSuchFieldError e2) {
            }
            try {
                f3765a[C1055a.CustomCard.ordinal()] = 3;
            } catch (NoSuchFieldError e3) {
            }
            try {
                f3765a[C1055a.BodyInfoCard.ordinal()] = 4;
            } catch (NoSuchFieldError e4) {
            }
        }
    }

    /* renamed from: cn.ledongli.ldl.a.l.a */
    private enum C1055a {
        RgmCard(0),
        LsfCard(1),
        unknown(2),
        CustomCard(3),
        BodyInfoCard(4);

        private final int f3772f;

        private C1055a(int i) {
            this.f3772f = i;
        }

        public int m7597a() {
            return this.f3772f;
        }
    }

    /* renamed from: cn.ledongli.ldl.a.l.b */
    static class C1056b {
        View f3773a;

        C1056b() {
        }
    }

    static {
        f3774a = C1057l.class.getName();
    }

    public void m7611a(boolean z) {
        this.f3781g = z;
    }

    public C1057l(Context context, DailyStats dailyStats, AQuery aQuery, List list, List list2) {
        this.f3780f = null;
        this.f3781g = false;
        this.f3778d = dailyStats;
        this.f3776b = list;
//        this.f3777c = list2;
        if (this.f3776b == null) {
            this.f3776b = new ArrayList();
        }
//        if (list2 == null) {
//            this.f3777c = new ArrayList();
//        }
        this.f3780f = aQuery;
        if (this.f3779e == null) {
//            this.f3779e = Typeface.createFromAsset(context.getAssets(), "fonts/akzidenzgrotesklightcond.ttf");
        }
    }

//    private C1055a m7601a(int i) {
//        Activity activity = (Activity) this.f3776b.get(i);
//        if (ActivityManagerWrapper.m8609f(activity) && !activity.m8519H()) {
//            return C1055a.LsfCard;
//        }
//        if (ActivityManagerWrapper.m8612g(activity)) {
//            return C1055a.RgmCard;
//        }
//        if (ActivityManagerWrapper.m8606e(activity) && !activity.m8567l()) {
//            return C1055a.RgmCard;
//        }
//        if (ActivityManagerWrapper.m8614h(activity)) {
//            return C1055a.CustomCard;
//        }
//        if (activity.m8578v() == -10) {
//            return C1055a.BodyInfoCard;
//        }
//        return C1055a.unknown;
//    }

    public int getCount() {
        return this.f3776b.size();
    }

    public int getViewTypeCount() {
        return C1055a.values().length;
    }

//    public int getItemViewType(int i) {
//        return m7601a(i).m7597a();
//    }

    public View getView(int i, View view, ViewGroup viewGroup) {
        View view2 = null;
//        if (i < this.f3776b.size() + this.f3777c.size()) {
//            C1056b c1056b;
//            Context context = viewGroup.getContext();
//            if (view == null || view.getTag() == null) {
//                switch (C10541.f3765a[m7601a(i).ordinal()]) {
//                    case ed.f15048b /*1*/:
//                        view2 = LayoutInflater.from(context).inflate(R.layout.pageview_timeline_cardview, null);
//                        break;
//                    case ed.f15049c /*2*/:
//                        view2 = LayoutInflater.from(context).inflate(R.layout.pageview_timeline_stay_row, null);
//                        break;
//                    case ed.f15050d /*3*/:
//                        view2 = LayoutInflater.from(context).inflate(R.layout.pageview_timeline_custom, null);
//                        break;
//                    case ed.f15051e /*4*/:
//                        view2 = LayoutInflater.from(context).inflate(R.layout.pageview_timeline_custom, null);
//                        break;
//                    default:
//                        view2 = LayoutInflater.from(context).inflate(R.layout.row_null, null);
//                        break;
//                }
//                c1056b = new C1056b();
//                c1056b.f3773a = view2;
//            } else {
//                c1056b = (C1056b) view.getTag();
//                view2 = view;
//            }
//            if (view2 != null) {
//                switch (C10541.f3765a[m7601a(i).ordinal()]) {
//                    case ed.f15048b /*1*/:
//                        m7610d(i, c1056b.f3773a, context);
//                        break;
//                    case ed.f15049c /*2*/:
//                        m7608c(i, c1056b.f3773a, context);
//                        break;
//                    case ed.f15050d /*3*/:
//                        m7604a(i, c1056b.f3773a, context);
//                        break;
//                    case ed.f15051e /*4*/:
//                        m7606b(i, c1056b.f3773a, context);
//                        break;
//                }
//                view2.setTag(c1056b);
//            }
//        }
        return view2;
    }

//    private void m7604a(int i, View view, Context context) {
//        Object obj;
//        AQuery aQuery = (AQuery) this.f3780f.recycle(view);
//        Activity activity = (Activity) this.f3776b.get(i);
//        C1472m.m12013a("POSITION", "position is " + i + " cust name is " + activity.m8579w().m8742e() + " DATE IS" + activity.m8574r());
//        ((AQuery) aQuery.id((int) R.id.cardview_icon)).image(C1057l.m7599a(activity));
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_time)).text(m7603a(activity, Boolean.valueOf(false)));
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_icon)).image((int) R.drawable.day_timeline_icon_place);
//        String e = activity.m8579w().m8742e();
//        if (e == null || e.equals("")) {
//            obj = "\u672a\u77e5\u5730\u70b9";
//        } else {
//            String str = e;
//        }
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_title)).text(String.format("%s", new Object[]{obj}));
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_1)).text(m7600a(String.format("%.0f", new Object[]{Double.valueOf(activity.m8581y() / 60.0d)}), " min"))).typeface(this.f3779e);
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_2)).text(m7600a(String.format("%.0f", new Object[]{Double.valueOf(activity.m8556g())}), " kCal"))).typeface(this.f3779e);
//        ((AQuery) aQuery.id((int) R.id.cardview_group_unit_1)).text(ActivityEnumType.getName(activity.m8578v()));
//        View findViewById;
//        LayoutParams layoutParams;
//        if (i != 0 || this.f3781g) {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, 115.0f);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = 0;
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        } else {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        }
//        if (i == getCount() - 1) {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_end_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).invisible();
//        } else {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_vertical_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).visible();
//        }
//        ((AQuery) ((AQuery) ((AQuery) aQuery.id((int) R.id.custom_card)).tag(String.valueOf(i))).clicked(new C1061p(this, activity, context))).longClicked(new C1058m(this, context, activity));
//        SharedPreferences d = C1481u.m12082d();
//        if (activity.m8574r().m8883p() == Double.longBitsToDouble(d.getLong(C1465g.az, 0))) {
//            Editor edit = d.edit();
//            edit.putLong(C1465g.az, 0);
//            edit.commit();
//            RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.custom_card);
//            Animation loadAnimation = AnimationUtils.loadAnimation(C1481u.m12068a(), R.anim.scale_fromzero);
//            loadAnimation.setAnimationListener(new C1062q(this));
//            relativeLayout.startAnimation(loadAnimation);
//        }
//    }

//    private void m7606b(int i, View view, Context context) {
//        Object obj;
//        AQuery aQuery = (AQuery) this.f3780f.recycle(view);
//        Activity activity = (Activity) this.f3776b.get(i);
//        C1472m.m12013a("POSITION", "position is " + i + " weight name is " + activity.m8579w().m8742e() + " date is " + activity.m8574r());
//        ((AQuery) aQuery.id((int) R.id.cardview_icon)).image((int) R.drawable.weight);
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_time)).text(C1466h.m11951a(C1211c.m8859a(activity.m8574r().getTime()), "HH:mm"));
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_icon)).image((int) R.drawable.day_timeline_icon_place);
//        String e = activity.m8579w().m8742e();
//        if (e == null || e.equals("")) {
//            obj = "\u672a\u77e5\u5730\u70b9";
//        } else {
//            String str = e;
//        }
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_title)).text(String.format("%s", new Object[]{obj}));
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_1)).text(m7600a(String.format("%.1f", new Object[]{Double.valueOf(activity.m8523a())}), " kg"))).typeface(this.f3779e);
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_2)).text(m7600a(String.format("%.0f", new Object[]{Double.valueOf(m7598a(activity.m8523a()))}), ""))).typeface(this.f3779e);
//        ((AQuery) aQuery.id((int) R.id.cardview_group_unit_1)).text((CharSequence) "\u4f53\u91cd");
//        ((AQuery) aQuery.id((int) R.id.cardview_group_unit_2)).text((CharSequence) "BMI");
//        View findViewById;
//        LayoutParams layoutParams;
//        if (i != 0 || this.f3781g) {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, 115.0f);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = 0;
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        } else {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        }
//        if (i == getCount() - 1) {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_end_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).invisible();
//        } else {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_vertical_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).visible();
//        }
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.custom_card)).tag(String.valueOf(i))).clicked(new C1063r(this));
//        SharedPreferences d = C1481u.m12082d();
//        if (activity.m8574r().m8883p() == Double.longBitsToDouble(d.getLong(C1465g.az, 0))) {
//            Editor edit = d.edit();
//            edit.putLong(C1465g.az, 0);
//            edit.commit();
//            RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.custom_card);
//            Animation loadAnimation = AnimationUtils.loadAnimation(C1481u.m12068a(), R.anim.scale_fromzero);
//            loadAnimation.setAnimationListener(new C1064s(this));
//            relativeLayout.startAnimation(loadAnimation);
//        }
//    }

//    private void m7608c(int i, View view, Context context) {
//        AQuery aQuery = (AQuery) this.f3780f.recycle(view);
//        Activity activity = (Activity) this.f3776b.get(i);
//        ((AQuery) aQuery.id((int) R.id.activity_title)).text(m7609d(activity));
//        ((AQuery) aQuery.id((int) R.id.activity_desc)).text(m7605b(activity));
//        if (activity.m8519H()) {
//            ((AQuery) aQuery.id((int) R.id.timeline_icon)).image(0);
//        } else {
//            ((AQuery) aQuery.id((int) R.id.timeline_icon)).image(C1057l.m7599a(activity));
//        }
//        if (activity.m8579w().m8742e().equals("\u5bb6")) {
//            ((AQuery) aQuery.id((int) R.id.timeline_icon)).image((int) R.drawable.day_timeline_stay_home);
//        } else if (activity.m8579w().m8742e().equals("\u5de5\u4f5c") || activity.m8579w().m8742e().equals("\u5b66\u6821")) {
//            ((AQuery) aQuery.id((int) R.id.timeline_icon)).image((int) R.drawable.day_timeline_stay_work);
//        } else {
//            ((AQuery) aQuery.id((int) R.id.timeline_icon)).image((int) R.drawable.day_timeline_stay_slight_1);
//        }
//        View findViewById;
//        LayoutParams layoutParams;
//        if (i != 0 || this.f3781g) {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_YELLOW);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = 0;
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        } else {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        }
//        if (i == getCount() - 1) {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_end_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).invisible();
//        } else {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_vertical_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).visible();
//        }
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.lsf_card)).tag(String.valueOf(i))).clicked(new C1065t(this, context));
//    }

    private double m7598a(double d) {
        float f = C1481u.m12082d().getFloat(C1465g.am, 1.72f);
        return d / ((double) (f * f));
    }

//    private void m7610d(int i, View view, Context context) {
//        Object obj;
//        AQuery aQuery = (AQuery) this.f3780f.recycle(view);
//        Activity activity = (Activity) this.f3776b.get(i);
//        ((AQuery) aQuery.id((int) R.id.cardview_icon)).image(C1057l.m7599a(activity));
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_time)).text(m7603a(activity, Boolean.valueOf(false)));
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_icon)).image((int) R.drawable.day_timeline_icon_place);
//        String e = activity.m8579w().m8742e();
//        if (e == null || e.equals("")) {
//            obj = "\u672a\u77e5\u5730\u70b9";
//        } else {
//            String str = e;
//        }
//        ((AQuery) aQuery.id((int) R.id.cardview_desc_title)).text(String.format("%s", new Object[]{obj}));
//        if (activity.m8578v() == 7 || activity.m8578v() == 49) {
//            ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_1)).text(m7600a(String.format("%d", new Object[]{Integer.valueOf(activity.m8554f())}), ""))).typeface(this.f3779e);
//            ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_2)).text(m7600a(String.format("%.1f", new Object[]{Double.valueOf(activity.m8539c() / 1000.0d)}), " km"))).typeface(this.f3779e);
//            ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_3)).text(m7600a(String.format("%.0f", new Object[]{Double.valueOf(activity.m8556g())}), " kCal"))).typeface(this.f3779e);
//            ((AQuery) aQuery.id((int) R.id.cardview_group_unit_1)).text((CharSequence) "\u8fd0\u52a8\u6b65\u6570");
//            ((AQuery) aQuery.id((int) R.id.cardview_group_unit_2)).text((CharSequence) "\u6d3b\u52a8\u8ddd\u79bb");
//        } else {
//            ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_1)).text(m7600a(String.format("%.1f", new Object[]{Double.valueOf(activity.m8539c() / 1000.0d)}), " km"))).typeface(this.f3779e);
//            ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_2)).text(m7600a(String.format("%.1f", new Object[]{Double.valueOf(activity.m8551e() * 3.6d)}), " km/h"))).typeface(this.f3779e);
//            ((AQuery) ((AQuery) aQuery.id((int) R.id.cardview_group_3)).text(m7600a(String.format("%.0f", new Object[]{Double.valueOf(activity.m8556g())}), " kCal"))).typeface(this.f3779e);
//            ((AQuery) aQuery.id((int) R.id.cardview_group_unit_1)).text((CharSequence) "\u6d3b\u52a8\u8ddd\u79bb");
//            ((AQuery) aQuery.id((int) R.id.cardview_group_unit_2)).text((CharSequence) "\u5e73\u5747\u901f\u5ea6");
//        }
//        View findViewById;
//        LayoutParams layoutParams;
//        if (i != 0 || this.f3781g) {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, 115.0f);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = 0;
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        } else {
//            findViewById = view.findViewById(R.id.timeline_vertical_line);
//            layoutParams = (LayoutParams) findViewById.getLayoutParams();
//            layoutParams.height = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.bottomMargin = 0;
//            layoutParams.topMargin = AQUtility.dip2pixel(context, BitmapDescriptorFactory.HUE_ORANGE);
//            layoutParams.addRule(12);
//            findViewById.setLayoutParams(layoutParams);
//        }
//        if (i == getCount() - 1) {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_end_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).invisible();
//        } else {
//            view.findViewById(R.id.timeline_vertical_line).setBackgroundResource(R.drawable.day_timeline_vertical_line);
//            ((AQuery) aQuery.id((int) R.id.split_line)).visible();
//        }
//        ((AQuery) ((AQuery) aQuery.id((int) R.id.rgm_card)).tag(String.valueOf(i))).clicked(new C1066u(this, context));
//        SharedPreferences d = C1481u.m12082d();
//        if (activity.m8574r().m8883p() == Double.longBitsToDouble(d.getLong(C1465g.az, 0))) {
//            Editor edit = d.edit();
//            edit.putLong(C1465g.az, 0);
//            edit.commit();
//            RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.rgm_card);
//            Animation loadAnimation = AnimationUtils.loadAnimation(C1481u.m12068a(), R.anim.scale_fromzero);
//            loadAnimation.setAnimationListener(new C1067v(this));
//            relativeLayout.startAnimation(loadAnimation);
//        }
//    }

    private SpannableString m7600a(String str, String str2) {
        SpannableString spannableString = new SpannableString(str + str2);
        spannableString.setSpan(new AbsoluteSizeSpan(40, true), 0, str.length(), 33);
        spannableString.setSpan(new AbsoluteSizeSpan(20, true), str.length(), spannableString.length(), 33);
        return spannableString;
    }

//    private String m7603a(Activity activity, Boolean bool) {
//        if (activity.m8578v() == -1) {
//            return "\u5148\u5e72\u70b9\u522b\u7684\uff0c\u8fc7\u4e00\u4f1a\u518d\u56de\u6765\u770b\u6211\u5427";
//        }
//        C1211c a;
//        C1211c a2 = C1211c.m8859a(activity.m8574r().getTime());
//        if (((double) activity.m8575s().getTime()) > ((double) System.currentTimeMillis())) {
//            a = C1211c.m8856a();
//        } else {
//            a = C1211c.m8859a(activity.m8575s().getTime());
//        }
//        return C1466h.m11951a(a2, "HH:mm") + " - " + C1466h.m11951a(a, "HH:mm");
//    }
//
//    private String m7605b(Activity activity) {
//        return m7603a(activity, Boolean.valueOf(true));
//    }

//    private String m7607c(Activity activity) {
//        double time = (double) activity.m8575s().getTime();
//        double time2 = (double) C1211c.m8856a().getTime();
//        if (time <= time2) {
//            time2 = time;
//        }
//        int time3 = (int) ((time2 - ((double) activity.m8574r().getTime())) / 1000.0d);
//        String str = "";
//        if (time3 < 0) {
//            return str;
//        }
//        int i = time3 / 3600;
//        time3 = (time3 % 3600) / 60;
//        if (i > 0) {
//            str = str + "" + i + "\u65f6";
//        }
//        return str + time3 + "\u5206";
//    }

//    private String m7609d(Activity activity) {
//        String str = "";
//        if (activity.m8578v() == 7) {
//            return String.format("\u603b\u5171 %d \u6b65 \u2022 %s", new Object[]{Integer.valueOf(activity.m8554f()), m7607c(activity)});
//        } else if (activity.m8578v() == 8) {
//            return String.format("\u8dd1\u6b65 %.1f km \u2022 %s", new Object[]{Double.valueOf(activity.m8539c() / 1000.0d), m7607c(activity)});
//        } else if (activity.m8578v() == 9) {
//            return String.format("\u9a91\u884c %.1f km \u2022 %s", new Object[]{Double.valueOf(activity.m8539c() / 1000.0d), m7607c(activity)});
//        } else if (activity.m8519H()) {
//            return String.format("\u5728\u8def\u4e0a %.1f km", new Object[]{Double.valueOf(activity.m8539c() / 1000.0d)});
//        } else if (activity.m8520I()) {
//            str = activity.m8579w().m8742e();
//            if (str == null || str.equals("")) {
//                return "\u672a\u77e5\u5730\u70b9";
//            }
//            return str;
//        } else if (activity.m8578v() == -1) {
//            return "\u6211\u4f1a\u5728\u540e\u53f0\u8bb0\u5f55\u8fd0\u52a8\u91cf\u548c\u8f68\u8ff9";
//        } else {
//            return str;
//        }
//    }

//    public static int m7599a(Activity activity) {
//        switch (activity.m8578v()) {
//            case Token.QUOTEDSTRING /*-2*/:
//                return R.drawable.day_timeline_first_time;
//            case SystemUtils.OS_UNKNOWN /*-1*/:
//                return R.drawable.day_timeline_first_time;
//            case ed.f15050d /*3*/:
//                return R.drawable.day_timeline_stay_medium;
//            case ed.f15051e /*4*/:
//                return R.drawable.day_timeline_stay_heavy;
//            case dp.f15018f /*5*/:
//                return R.drawable.day_timeline_commute;
//            case cl.f14907g /*6*/:
//                return R.drawable.day_timeline_commute;
//            case cl.f14908h /*7*/:
//                return R.drawable.day_timeline_walking;
//            case C3459a.f15326e /*8*/:
//                return R.drawable.day_timeline_running;
//            case C2945i.TitlePageIndicator_footerIndicatorUnderlinePadding /*9*/:
//                return R.drawable.day_timeline_bicycling;
//            case C2945i.TitlePageIndicator_linePosition /*11*/:
//                return R.drawable.day_timeline_walking;
//            case C2945i.TitlePageIndicator_selectedBold /*12*/:
//                return R.drawable.day_timeline_running;
//            case C2945i.TitlePageIndicator_titlePadding /*13*/:
//                return R.drawable.day_timeline_bicycling;
//            case C2918a.f12485g /*16*/:
//                return R.drawable.atype_climbstair;
//            case SocializeConstants.PLATFORM_ID_LAIWANG_DYNAMIC /*17*/:
//                return R.drawable.atype_swimming;
//            case SocializeConstants.PLATFORM_ID_INSTAGRAM /*18*/:
//                return R.drawable.atype_climbmountain;
//            case SocializeConstants.OP_POST_SHARE_BY_CUSTOM /*19*/:
//                return R.drawable.atype_pingpong;
//            case SocializeConstants.OP_SHARE_TO_LW /*20*/:
//                return R.drawable.atype_badminton;
//            case SocializeConstants.OP_SHARE_TO_FB /*22*/:
//                return R.drawable.atype_yoga;
//            case SocializeConstants.OP_SHARE_TO_INSTAGRAM /*23*/:
//                return R.drawable.atype_basketball;
//            case SocializeConstants.OP_SHARE_TO_QZONE_WEBVIEW /*24*/:
//                return R.drawable.atype_soccer;
//            case SocializeConstants.OP_SHARE_TO_QZONE /*25*/:
//                return R.drawable.atype_tennis;
//            case C2012l.Theme_actionMenuTextColor /*26*/:
//                return R.drawable.atype_dance;
//            case C2012l.Theme_actionModeStyle /*27*/:
//                return R.drawable.atype_rollerskate;
//            case C2313m.f10351k /*28*/:
//                return R.drawable.atype_calisthenics;
//            case C2012l.Theme_actionModeBackground /*29*/:
//                return R.drawable.atype_jumprope;
//            case C2012l.Theme_actionModeSplitBackground /*30*/:
//                return R.drawable.atype_golf;
//            case C2012l.Theme_actionModeCloseDrawable /*31*/:
//                return R.drawable.atype_volleyball;
//            case C2918a.f12484f /*32*/:
//                return R.drawable.atype_baseball;
//            case C2012l.Theme_actionModeCopyDrawable /*33*/:
//                return R.drawable.atype_squash;
//            case C2012l.Theme_actionModePasteDrawable /*34*/:
//                return R.drawable.atype_bowling;
//            case C2012l.Theme_actionModeSelectAllDrawable /*35*/:
//                return R.drawable.atype_boating;
//            case C2012l.Theme_actionModeShareDrawable /*36*/:
//                return R.drawable.atype_boxing;
//            case C2012l.Theme_actionModeFindDrawable /*37*/:
//                return R.drawable.atype_dart;
//            case C2012l.Theme_actionModeWebSearchDrawable /*38*/:
//                return R.drawable.atype_dive;
//            case C2012l.Theme_actionModePopupWindowStyle /*39*/:
//                return R.drawable.atype_ski;
//            case C2012l.Theme_textAppearanceLargePopupMenu /*40*/:
//                return R.drawable.atype_fencing;
//            case C2012l.Theme_textAppearanceSmallPopupMenu /*41*/:
//                return R.drawable.atype_rugby;
//            case C2012l.Theme_dialogTheme /*42*/:
//                return R.drawable.atype_frisbee;
//            case C2012l.Theme_listDividerAlertDialog /*44*/:
//                return R.drawable.atype_criket;
//            case QQShare.QQ_SHARE_TITLE_MAX_LENGTH /*45*/:
//                return R.drawable.atype_gateball;
//            case C2012l.Theme_dropdownListPreferredItemHeight /*46*/:
//                return R.drawable.atype_curling;
//            case C2298e.f10303e /*47*/:
//                return R.drawable.atype_snowboard;
//            case C2012l.Theme_homeAsUpIndicator /*48*/:
//                return R.drawable.atype_surf;
//            case C2012l.Theme_actionButtonStyle /*49*/:
//                return R.drawable.day_timeline_walking;
//            case C2012l.Theme_buttonBarStyle /*50*/:
//                return R.drawable.day_timeline_running;
//            case C2012l.Theme_buttonBarButtonStyle /*51*/:
//                return R.drawable.day_timeline_bicycling;
//            default:
//                return R.drawable.day_timeline_stay_slight;
//        }
//    }

    public Object getItem(int i) {
        return null;
    }

    public long getItemId(int i) {
        return 0;
    }
}
